Skip to content

Conversation

@aisk
Copy link
Contributor

@aisk aisk commented Dec 27, 2025

return PyType_GetModuleByToken((PyTypeObject *)type, token);
}

static PyType_Slot HeapCTypeWithBasesSlotInvalid_slots[] = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure about the name :)
Technically, it is not invalid right now.

What is invalid is that we fill it with None, not with tuple.

return -1;
}
HeapCTypeWithBasesSlot_slots[0].pfunc = bases;
PyObject *HeapCTypeWithBasesSlot = PyType_FromSpec(&HeapCTypeWithBasesSlot_spec);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can return NULL in theory, let's add a check for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants